<div class="breadcrumb">
        <a href="/admin/index">Home</a>
         :: <a href="/admin/user">User Manage</a>
</div>
    <?php  if(isset($this->success)) {?>
<div class="success" style="text-align: center;"><?php echo $this->success;?></div>
	<?php }?>
	<?php if(isset($this->warning)) {?>
<div class="warning" style="text-align: center;"><?php  echo $this->warning;?></div>
	<?php }?>
<div class="box">
    <div class="heading">
      <h1><img alt="" src="/images/admin/user-group.png"> User Group</h1>
      <div class="buttons">
      <a class="button" onclick="location = '/admin/user/insert'">Insert</a>
      <a class="button" onclick="$('form').submit();">Delete</a></div>
    </div>
    <div class="content">
		<form id="form" enctype="multipart/form-data" method="post" action="/admin/user/delete">
			<table class="list">
				<thead>
					<tr>
						<td width="1" style="text-align: center;"><input type="checkbox" onclick="$('input[name*=\'selected\']').attr('checked', this.checked);"></td>
						<td class="left">User Name</td>
						<td class="left">Status</td>
						<td class="left">Date Added</td>
						<td class="right">Action</td>
					</tr>
				</thead>
				<tbody>
					<?php if(isset($this->data_user)) {?>
					<?php foreach($this->data_user as $data) {?>
					<tr>
						<td style="text-align: center;">
							<input type="checkbox" value="<?php echo $data['id'];?>" name="selected[]">
						</td>
						<td class="left"><?php echo $data['name'];?></td>
						<td class="left"><?php echo $data['status'];?></td>
						<td class="left"><?php echo $data['date_created'];?></td>
						<td class="right">
							[ <a href="/admin/user/insert?id=<?php echo $data['id'];?>">Edit</a> ]
						</td>
					</tr>
				   <?php } }?>
				</tbody>
			</table>
		</form>
    </div>
</div>
